<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link
	href="//cdn.bootcss.com/jquery.bootstrapvalidator/0.5.3/css/bootstrapValidator.min.css"
	rel="stylesheet">
<link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.css"
	rel="stylesheet">
<link href="<%=request.getContextPath()%>/resources/css/list.css"
	rel="stylesheet">
<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script
	src="//cdn.bootcss.com/jquery.bootstrapvalidator/0.5.3/js/bootstrapValidator.min.js"></script>
<script src="<%=request.getContextPath()%>/resources/js/validate.js"></script>
<script type="text/javascript">
	function reCheckcode(img) {
		img.src = "drawCheckCode?" + Math.random();
	}
</script>
</head>
<body>
<div class="form-group has-success has-feedback">
	<form action="<%=request.getContextPath()%>/song/add">
		<div class="form-group"><label>歌曲名：</label><input class="form-control input-lg" type="text" name="name"></div>
		<div class="form-group"><label>留言：</label><input class="form-control input-lg" type="text" name="message" placeholder="在这里可以写下你点这首歌的原因哦"></div>
		<div class="form-group"><label>验证码：</label><input class="form-control input-lg" type="text" name="vc"></div>
		<div style="height: 40px;padding-top:10px;">
			<img width="120px" height="100%" onclick="reCheckcode(this)"
				src="<%=request.getContextPath() %>/drawCheckCode">
			<span>看不清？点图片</span>
		</div>
		<br>
		<button type="submit" class="btn">点歌</button>
	</form>
	</div>
</body>
</html>